<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <p>1</p>
    <p>2</p>
    <p>3</p>
    <script>
        //数组
        const s = new Set([1, 2, 3, 4, 5])
        console.log(s);

        //字符串
        console.log(new Set('hello'));
        //arguments
        function func() {
            console.log(new Set(arguments));
        }

        func(1, 2, 3)

        //nodeList
        console.log(new Set(document.querySelectorAll('p')));
    </script>
</body>

</html>